
package com.happycat.mobile.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.happycat.Pagination;
import com.happycat.ResponseHeaderModel;
import com.happycat.ResponseModel;
import com.happycat.base.R;
import com.happycat.mobile.dto.LoginDto;
import com.happycat.mobile.model.UserAccount;
/**
 * Module: UserAccount.java
 * 
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-07-14
 * @Descriptions:
 */
public interface UserAccountService extends IService<UserAccount> {
	
	ResponseModel<UserAccount> selectOne(UserAccount userAccount);
	
	ResponseHeaderModel	add(UserAccount userAccount);
	
	ResponseHeaderModel	modify(UserAccount userAccount);
	
	ResponseModel<Page<UserAccount>> pageList(Pagination<UserAccount> page);
	
	UserAccount getAccountMappingRoleList(UserAccount userAccount);
	
	ResponseModel<UserAccount> login(LoginDto loginDto);

	ResponseModel<UserAccount> getUserStatus(String phone);

	ResponseModel<UserAccount> modifyPassword(UserAccount userAccount);

	ResponseModel<UserAccount> resetPassword(UserAccount userAccount);

	//更新猫粮余额
	Boolean updateBalance(long accounId, double num, int type, String transId, int symbol, int experience);

    String getImUserId(Long accountId);

    UserAccount checkUserById(long userId);
}